<template>
  <div>
    <v-list :teacher="teacher" type="Java"></v-list>
    <!-- 
      <h5>Java老师</h5>
      <ul>
      <li>
        xxx
        <img src="" alt="" />
      </li>
      <li>
        xxx
        <img src="" alt="" />
      </li> 

      <li v-for="item in teacher" :key="item.id">
        {{ item.username }}
        <img :src="item.img" alt="" />
      </li>
    </ul>-->
  </div>
</template>

<script>
// 引入list组件
import vList from './list.vue'
export default {
  components:{
    vList
  },
  data() {
    return {
      teacher: [
        {
          id: 2,
          username: "花老师",
          img: "http://www.ujiuye.com/uploadfile/2019/0109/20190109105319126.jpg",
        },
        {
          id: 3,
          username: "罗老师",
          img: "http://www.ujiuye.com/uploadfile/2019/0109/20190109105746814.jpg",
        },
      ],
    };
  },
};
</script>

<style>
</style>